package sd.settemmezzo.player.state;

import java.io.Serializable;

import sd.settemmezzo.common.Player;

public class LocalState implements Serializable {

	private static final long serialVersionUID = 1L;

	private static LocalState instance;
	private int id;
	private String name = null;
	private String ruolo = "normal";
	private int credit = 50;

	private Player nextPlayer;

	public static LocalState getInstance() {
		if (instance == null) {
			instance = new LocalState();
		}
		return instance;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRuolo() {
		return ruolo;
	}

	public void setRuolo(String ruolo) {
		this.ruolo = ruolo;
	}

	public void setNextPlayer(Player nextPlayer) {
		this.nextPlayer = nextPlayer;
	}

	public Player getNextPlayer() {
		return nextPlayer;
	}
	
	public void setCredit(int credit) {
		this.credit = credit;
	}

	public int getCredit() {
		return credit;
	}

}
